<?php include_once './application/views/sys_admin/common/header.php';  ?>
<div class=" definewidth m20">
<iframe name="iframe" id="iframe" style="display:none"></iframe>
<form action="/sys_admin/meiti/add" method="post" enctype="multipart/form-data" target="iframe" name="form" id="form">
	<input type="hidden" value="<?php echo isset($info['id']) ? $info['id'] : '';?>" name="id"/>
	<tr>
        <td class="tableleft">标题 </td>
        <td><input type="text" name="title" id="title" size="50"  value="<?php echo isset($info['title'])?$info['title']:''; ?>" /> </td>
    </tr>
    <tr>
        <td class="tableleft">URL </td>
        <td> <input type="text" name="url" id="url" size="50" value="<?php echo isset($info['url'])?$info['url']:''; ?>" /></td>
    </tr>
    <tr>
        <td class="tableleft">类型 </td>
        <td> 
        <select name="type">
			<option value="1" <?php echo isset($info['type']) && $info['type']==1 ?"selected='selected'":""; ?>>报表</option>
			<option value="2" <?php echo isset($info['type']) && $info['type']==2 ?"selected='selected'":""; ?>>媒体</option>
		</select>
        </td>
    </tr>
    <tr>
        <td class="tableleft">缩略图 </td>
        <td> <input type="file" name="image" id="image" /></td>
    </tr>
    <?php if (isset($info['image']) && $info['image']!=''){?>
    <tr>
        <td class="tableleft"> </td>
        <td> <img src="/<?php echo $info['image']; ?>" /></td>
    </tr>
    <?php }?>
    
    <tr>
        <td class="tableleft"> </td>
        <td><button type="button" class="btn btn-success"  onclick="this.form.submit();" >提交</button></td>
    </tr>
</form>
